import {computed, onMounted, ref} from "vue";

export default function () {
    let sum = ref(1)
    let bigSum = computed(()=> {
        return sum.value * 10
    })

    function add() {
        sum.value += 1
    }
    onMounted(()=> {
        add()
    })
    return {sum,add,bigSum}
}


